<?php
/**
 * @file test012.php
 * @package test 
 * @subpackage 
 * @version $id: 0.1 utf8 2009/ / : : $
 * @author LD King <kldscs@gmail.com>
 * @copyright Copyright (c) 2007 - 2009 MiFunny China Inc. (http://mifunny.info)
 * @desc var_export 函数的使用
 */
$testArr = array('XXOO' => '一百万人的故事',
    'BJBJ' => array(1,2,3,4,5,6,7,8,9,0) );
//var_export($testArr);

$content = '<?php return ' . var_export($testArr, true) . ';';
var_dump($content);

//echo "<br />\t\n".file_put_contents('test012.txt', $content, LOCK_EX);
//echo "<br />\t\n".file_put_contents('test012.txt', php_strip_whitespace(' \tmp\php\test012.txt '), LOCK_EX);
echo "<br />\t\n".file_put_contents('test012.txt', php_strip_whitespace($content), LOCK_EX);

// 去除多余空格
//var_dump( preg_replace('/\s+/', '',var_export($testArr, true)) );

echo "YXXOO!".time();
//var_dump( $content );

?>

